package com.yiqihaha.devin.service.impl;


import com.yiqihaha.devin.domain.dto.PersonDTO;
import com.yiqihaha.devin.mapper.PersonMapper;
import com.yiqihaha.devin.service.inf.IPersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by edwin on 3/13/17.
 */
@Service
@Transactional
public class PersonServiceImpl implements IPersonService {

    @Autowired
    private PersonMapper personMapper;

    @Override
    public PersonDTO personBySerial(String serial) {
        return personMapper.getPersonBySerial(serial);
    }
}
